package com.example.wechattakeaway.service;

import com.example.wechattakeaway.form.merdishform.InsertMerDishForm;
import com.example.wechattakeaway.form.merdishform.UpdateMerDishForm;
import com.example.wechattakeaway.vo.ResultVO;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
@Repository
public interface MerDishService {
    //插入菜品
    ResultVO insertMerDish(InsertMerDishForm insertMerDishForm);


    //编辑菜品信息
    ResultVO updateMerDish(UpdateMerDishForm updateMerDishForm);

    //根据id查询菜品
    ResultVO selectDishById(Integer dishId);

    //根据菜单id查询菜品列表(分页)
    ResultVO selectDishByMenuId(Integer pageNum,Integer menuId);

    //根据id删除菜品
    ResultVO deleteMerDish(Integer dishId);

    //根据商家id查询菜品列表
    ResultVO selectDishByMerchantId(Integer merchantId);
    //根据菜单id查询菜品列表
    ResultVO selectByMenuId(Integer menuId);

    //根据id更新商家图片
    ResultVO UpdateDishPhotoById(MultipartFile file,Integer merchantId);

}
